home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Interactive 7
/
PC World Interactive 7.iso
/
program
/
ctutord.EXE
/
73A.C
< prev
next >
Wrap
C/C++ Source or Header
|
1990-09-17
|
592b
|
27 lines
/*
There may be additional include files required depending
upon the compile product you are using. Typical compilers
include Microsoft C by Microsoft or Turbo C by Boland Int'l.
*/
#include <stdio.h>
main()
{
struct flags {
int status;
int current;
int prev;
};
static struct flags runtime[] = {
{ 0,1,2 },
{ 3,5,6 },
{ 7,8,9 },
{ 10,11,12 }
};
printf("%d\n",runtime[0].status);
printf("%d\n",runtime[1].status);
printf("%d\n",runtime[2].status);
printf("%d\n",runtime[3].status);
/* try printing out the whole flags data structure */
}